package com.demo.mapper;

import com.demo.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chenyuan
 * @date 2020/9/28 17:49
 */
@Mapper
@Repository
public interface DeptMapper {
    /**增加
     * @param dept
     * @return
     */
    public boolean addDept(Dept dept);

    /** 按照 id 查询
     * @param id
     * @return
     */
    public Dept queryDeptById(Long id);

    /** 查询所有
     * @return
     */
    public List<Dept> queryDepts();
}
